<?php
date_default_timezone_set('Asia/Singapore');
include("class/Comment.class.php");
$user_id = $_SESSION['auth'];
$body = $_POST['comment'];
$place_id = $_POST['place_id'];
$datetime = new DateTime;
$timezone  = new DateTimeZone('Singapore');
$datetime->setTimezone($timezone);
$date_time = $datetime->format('Y-m-d H:i:s');
$comments = new Comment();
echo json_encode($comments->submit_comment($user_id, $place_id, $date_time, $body));
?>